<?xml version="1.0" encoding="utf-8" ?>
<TestCase testName="Test_09_SendPortGetStatus">

	<TestSetup>
		<TestStep assemblyPath="BizUnit.Extensions.dll" typeName="BizUnit.Extensions.ContextPopulateStep">
			<ContextLoad contextKey="connectionString" keyValue="Integrated Security=SSPI;database=BizTalkMgmtDb;server=(local)" dataType="String" />
			<ContextLoad contextKey ="ApplicationName" keyValue ="CBRApplication" dataType="string" />
			<ContextLoad contextKey="SendPort" keyValue="CBRUSSendPort" dataType="string" />
		</TestStep>

		<!-- Stop the send port -->
		<TestStep assemblyPath="BizUnit.Extensions.BizTalk.dll" typeName="BizUnit.Extensions.BizTalk.SendPortConductorStep">
			<DelayForCompletion>5</DelayForCompletion>
			<!-- Optional, seconds to delay for this step to complete -->
			<ApplicationName takeFromCtx="ApplicationName"></ApplicationName>
			<ConnectionString takeFromCtx = "connectionString"></ConnectionString>
			<SendPortName takeFromCtx = "SendPort"></SendPortName>
			<Action>Stop</Action>
		</TestStep>

	</TestSetup>


	<TestExecution>
		<TestStep assemblyPath="BizUnit.Extensions.BizTalk.dll" typeName="BizUnit.Extensions.BizTalk.SendPortGetStatusStep">
			<ApplicationName takeFromCtx="ApplicationName"></ApplicationName>
			<ConnectionString takeFromCtx = "connectionString"></ConnectionString>
			<SendPortName takeFromCtx = "SendPort"></SendPortName>

			<ValidationStep assemblyPath="BizUnit.Extensions.dll" typeName="BizUnit.Extensions.ContextVerifyStep">
				<Verify keyName="CurrentApplication">CBRApplication</Verify>
				<Verify keyName="SendPortName">CBRUSSendPort</Verify>
				<Verify keyName="SendPortStatus">Stopped</Verify>
			</ValidationStep>

		</TestStep>


	</TestExecution>

	<!-- Test cleanup: test cases should always leave the system in the state they found it -->
	<TestCleanup>
	</TestCleanup>

</TestCase>


